package gui.data.others;

import java.awt.Dimension;
import java.awt.GridLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

import calcs.OthersCalculator;

public class SingleOutputGui extends JPanel {
	JTextArea res;

	public SingleOutputGui(int guide, String input) {
		this.setLayout(new GridLayout(1, 1));
		this.setPreferredSize(new Dimension(500,500));
		res = new JTextArea();
		res.setLineWrap(true);
		JScrollPane scroll = new JScrollPane(res);
		res.setEditable(false);
		this.add(scroll);
		new OthersCalculator(res, Integer.parseInt(input), guide, false);
	}
}
